Skip to content

persistent storage #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 70 commits into
base: develop
Choose a base branch
from

Conversation

dhebbeker
Copy link
Member

@dhebbeker dhebbeker commented Mar 12, 2025

  • try USB MSC with Windows
  • does JTAG work with USB MSC simultaneously?
  • does Wokwi still work
  • define an application-side interface

Taken from framework-arduinoespressif32 version 3.20017.0.
This is probably without effect. But just to be clean.
This should deactivate the use Arduino-ESP32 TinyUSB library.
This way only the Adafruit version of the TinyUSB library should be used.
…ons.

Apparently there are linkage problems with v.3.4.0 🤷

adafruit/Adafruit_TinyUSB_Arduino#473
https://community.platformio.org/t/new-tinyusb-doesnt-allow-compile/44281

Note: When using `@3.3.4` as version specification with platformio v3.4.0 is currently used.
This helps debugging backtraces printed to UART
As this is the version the example code has been used from.
Automatically generated by PlatformIO Home.
…-information-6' into feature/6-persistent-storage-for-configuration-and-task-information-2
…-information-4' into feature/6-persistent-storage-for-configuration-and-task-information-2
Some callbacks are simply not available using only the Arduino-ESP32 framework
Is apparently not included in the C++ Standard Library implementation
This reverts commit bcca8ab37f4f06f32c8158948956261fb9c79f93, reversing
changes made to 7602e1c.
dhebbeker added 30 commits March 3, 2025 18:52
This reverts commit 01ed893.

Because starting file system within event loop failed:

```
ESP_ERROR_CHECK failed: esp_err_t 0x1 (ERROR) at 0x4037ab88
  #0  0x4037ab88 in _esp_error_check_failed at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/esp_err.c:42

file: "lib/storage/storage.cpp" line 117
func: void switchToApplicationMode()
expression: FFat.begin()

abort() was called at PC 0x4037ab8b on core 1

Backtrace: 0x403777ba:0x3fcf2100 0x4037ab95:0x3fcf2120 0x4038058d:0x3fcf2140 0x4037ab8b:0x3fcf21c0 0x42002afb:0x3fcf21e0 0x42002b15:0x3fcf2200 0x4205e6d5:0x3fcf2220 0x4205e754:0x3fcf2270
  #0  0x403777ba in panic_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/panic.c:408
  #1  0x4037ab95 in esp_system_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/esp_system.c:137
  #2  0x4038058d in abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/abort.c:46
  #3  0x4037ab8b in _esp_error_check_failed at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/esp_err.c:43
  #4  0x42002afb in switchToApplicationMode() at lib/storage/storage.cpp:117 (discriminator 1)
  #5  0x42002b15 in usbStoppedCallback(void*, char const*, int, void*) at lib/storage/storage.cpp:139
  #6  0x4205e6d5 in handler_execute at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_event/esp_event.c:145
      (inlined by) esp_event_loop_run at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_event/esp_event.c:598
  #7  0x4205e754 in esp_event_loop_run_task at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_event/esp_event.c:115 (discriminator 15)
```
…-information-2' into feature/6-persistent-storage-for-configuration-and-task-information-7
That function returns `true` on success.
…-information-8' into feature/6-persistent-storage-for-configuration-and-task-information-7
…nt-storage-for-configuration-and-task-information-7
This cleans up the dependency graph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant